﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hotnet.Entity;
using Hotnet.Dal.NSDalVideo;

namespace Hotnet.Biz.NSBizVideo
{
	public class BizVideoChild : BaseBiz<VideoChild>
	{
		private static DalVideoChild db = new DalVideoChild();
		public BizVideoChild() : base(db) { }

		public VideoChild[] ListVideoChilds(int groupID)
		{
			return db.ListBy(x => x.GroupID == groupID);
		}

		public VideoChild[] ListVideoChilds(int pageNo, int pageSize, out int totalCount, int groupID)
		{
			return db.ListVideoChilds(pageNo, pageSize, out totalCount, groupID);
		}

		public new bool Delete(int id)
		{
			base.Delete(id);
			return true;
		}

		public bool DeleteByGroupID(int groupID)
		{
			db.DeleteBy(x=>x.GroupID==groupID);
			return true;
		}

	}
}
